from str_tools import str_tool


class Tool:
    pass


t1 = Tool()
t2 = Tool()

print(id(t1), id(t2))  # False

# 单例模式
s1 = str_tool
s2 = str_tool

print(id(s1), id(s2))
